package com.bestcem.xm.label.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * 公共常量类
 *
 * @author zhenz
 * @date 2020/6/1 18:51
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class Constants {

    /**
     * 点
     */
    public static final String DOT = ".";

    /**
     * 中划线
     */
    public static final CharSequence HYPHEN = "-";

    /**
     * 空格
     */
    public static final CharSequence SPACE = " ";

    /**
     * 零
     */
    public static final int ZERO = 0;

    /**
     * 一
     */
    public static final int ONE = 1;

    /**
     * 二
     */
    public static final int TWO = 2;

    /**
     * -1
     */
    public static final String NEGATIVE_ONE_STR = "-1";

    /**
     * True
     */
    public static final boolean TRUE = true;

    /**
     * 成功
     */
    public static final int SUCCESS = 0;

    /**
     * 失败
     */
    public static final int ERROR = 1;

    /**
     * 从数据库中加载LabelValue每页最大条数
     */
    public static final int LABEL_VALUE_PAGE_SIZE = 200;

    /**
     * 标签值最大数量
     */
    public static final int LABEL_VALUE_MAX = 30;

    //标签组最大长度
    public static final int TAG_GROUP_MAX_LEN = 20;

    //标签组名最大长度
    public static final int TAG_GROUP_NAME_MAX_LEN = 30;

    /**
     * 标签名最大长度
     */
    public static final int LABEL_NAME_MAX_LEN = 30;

    /**
     * 标签值名称最大长度
     */
    public static final int LABEL_VALUE_NAME_MAX_LEN = 30;

    /**
     * 自动打标签条件，每个条件组最多包含5个条件或条件组
     */
    public static final int MAX_SIBLING_CONDITION_NUM = 5;

    /**
     * 自动打标签，上下文中，问卷相关条件Map初始大小
     */
    public static final int SURVEY_CONDITION_INITIAL_CAPACITY = 128;

    /**
     * 最大标签嵌套深度
     */
    public static final int MAX_NESTED_LABEL_LEVEL = 3;
}
